package com.erp.erp_dao.DictionaryValue;


import java.util.List;

import com.erp.erp_entitys.DictionaryValue.DictionaryValueEntity;
import com.erp.erp_entitys.DictionaryValue.DictionaryValueExample;
import org.apache.ibatis.annotations.Param;

public interface IDictionaryValueDAO {
    long countByExample(DictionaryValueExample example);

    int deleteByExample(DictionaryValueExample example);

    int deleteByPrimaryKey(Integer code);

    int insert(DictionaryValueEntity record);

    int insertSelective(DictionaryValueEntity record);

    List<DictionaryValueEntity> selectByExample(DictionaryValueExample example);

    DictionaryValueEntity selectByPrimaryKey(Integer code);

    int updateByExampleSelective(@Param("record") DictionaryValueEntity record, @Param("example") DictionaryValueExample example);

    int updateByExample(@Param("record") DictionaryValueEntity record, @Param("example") DictionaryValueExample example);

    int updateByPrimaryKeySelective(DictionaryValueEntity record);

    int updateByPrimaryKey(DictionaryValueEntity record);
    /**
     * 获取所有叶子节点的值，即右侧显示的表格内容
     * @param code
     * @return
     */
    List<DictionaryValueEntity> selectValueByParent(@Param("codes")String codes);
}